import { invoke } from '@tauri-apps/api/tauri';

// 打开浏览器
export async function openBrowser(url: string): Promise<void> {
    const cmd = 'plugin:min_app_shell|open_browser';
    const request = { url };
    console.log(`%c${cmd}`, 'color:#0f0;', request);
    await invoke(cmd, request);
}